package com.jai.pms.message.handle;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Configuration;
import org.springframework.util.ErrorHandler;

@Configuration
public class RedisStreamErrorHandler implements ErrorHandler {
    private static final Logger log = LoggerFactory.getLogger(RedisStreamErrorHandler.class);

    @Override
    public void handleError(Throwable t) {
        log.error("[message处理异常]:{}", t.getMessage());
    }
}
